<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <script type="text/javascript" src="../js/jquery.min.js"></script>
  <title>提交成功</title>

</head>

<body>
  <header>XX支付 | 收银台</header>
  <div class="main">
    <div class="main_content">
      <div class="content_title">
        <div class="fail">
          <div style="width: 150px;height: 150px;margin: 0 auto;"><img style="width: 100%;height: 100%"
              src="../img/ifail.png" alt="">
          </div>
          <div style="margin-top:30px;text-align: center;">
            <h2>支付失败</h2><br>
            <div>失败原因：xxxx</div>
            <input type="button" value="重新支付">
          </div>
        </div>

        <div class="succ" style="display: block;margin-top: 10vh;">
          <div style="width: 100px;height: 100px;margin: 0 auto;"><img style="width: 100%;height: 100%"
              src="../img/isucc.png" alt="">
          </div>
          <div style="margin-top:30px;text-align: center;">
            <h2>支付成功</h2><br>

            <input type="button" value="继续购物"> <a style="color: #1296dc;margin-left: 10px;" href="#">查看购物详情</a>
          </div>
        </div>

      </div>
    </div>
  </div>
</body>

</html>
<script>
  $(document).ready(function () {
    var payResult = true;
    if (payResult == true) {
      $(".fail").hide();
      $(".succ").show();
    } else {
      $(".fail").show();
      $(".succ").hide();
    }

  });

</script>
<style>
  * {
    padding: 0;
    margin: 0;
  }

  li {
    list-style: none;
  }

  a {
    text-decoration: none;
  }

  body {
    height: 100vh;
  }

  header {
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main {
    height: 90vh;
    padding: 50px;
    background: #ccc;
    box-sizing: border-box;
  }

  .main_content {
    width: 80vw;
    margin: 0 auto;
    background: #fff;
    padding: 40px 150px;
    height: 100%;
    box-sizing: border-box;
  }

  .content_title {
    width: 60vw;
    margin: 0 auto;

    padding: 40px 150px;
    height: 100%;
    box-sizing: border-box;
  }


  span {
    color: #29a576;
  }


  input {
    width: 125px;
    height: 35px;
    border-radius: 3px;
    margin-top: 25px;
    font-size: 16px;
    border: 1px solid #fff;
    background-color: #1296dc;
    color: #fff;

  }

</style>
